const paperRouter = require('express').Router()
const paperapi = require('../api/paper')


paperRouter.use('/echo',(rep,res)=>{
    res.send({
        msg:"/paper/   echo"
    })
})
paperRouter.get('/testpaperlist',(req,res)=>{
    paperapi.testPaperList(req,res)
})

paperRouter.post('/createtestpaper',(req,res)=>{
    paperapi.createTestPaper(req,res)
})

paperRouter.post('/deletetestpaper',(req,res)=>{
    paperapi.deleteTestPaper(req,res)
})

paperRouter.get('/testpaperdetail',(req,res)=>{
    paperapi.testPaperDetail(req,res)
})

paperRouter.post('/addtestquestions',(req,res)=>{
    paperapi.addTestQuestion(req,res)
})

paperRouter.post('/deletetestquestions',(req,res)=>{
    paperapi.deleteTestQuestion(req,res)
})



module.exports = {
    paperRouter
}